From: Keir Fraser Date: Fri, 28 May 2010 08:25:34 +0000 (+0100) Subject: xl: Move "extern" declarations to xl.h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12065 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=ca1ba182563b41fe7a4dbffc5308cdd5318833d6;p=xen.git xl: Move "extern" declarations to xl.h Declarations (as opposed to definitions) of external objects should not appear in .c files. Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 82ab873a43..77eaa7b087 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -31,9 +31,6 @@ #include "libxl_utils.h" #include "xl.h" -extern struct libxl_ctx ctx; -extern int logfile; - void log_callback( void *userdata, int loglevel, const char *file, int line, const char *func, char *s) diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h index faf784ae8b..450a12ff2b 100644 --- a/tools/libxl/xl.h +++ b/tools/libxl/xl.h @@ -74,4 +74,7 @@ void help(char *command); extern struct cmd_spec cmd_table[]; extern int cmdtable_len; +extern struct libxl_ctx ctx; +extern int logfile; + #endif /* XL_H */